﻿using System;
using System.Data; 
using System.Text;

namespace WQFree.IDataAccess
{
    public interface ICommon
    {
       DataSet GetDataSet(string cmdText, CommandType cmdType, string tableName);
       IDataReader GetDataReader(string cmdText, CommandType cmdType);
       Object[] GetFields(string query, CommandType cmdType);
       object ExecuteScalar(string cmdText, CommandType cmdType);
       int ExecuteNonQuery(string cmdText, CommandType cmdType);
       DataSet GetPagedDataSet(string tableName, string selectField, string idFileld, string where, string sortField, int sortType, int pageIndex, int pageSize, bool isCount, out int count);
       IDataReader GetPagedDataReader(string tableName, string selectField, string idFileld, string where, string sortField, int sortType, int pageIndex, int pageSize, bool isCount, out int count);

       int DeleteRecords(string tableName, string idField, string ids); 
    }
}
